All buttons should always be marked as :active when they are pressed.
That includes checkboxes (which are never activated in real code anyway,
so this change pretty much doesn't matter).
priv->button_down = FALSE;
priv->use_stock = FALSE;
priv->use_underline = FALSE;
- priv->depress_on_activate = TRUE;
priv->focus_on_click = TRUE;
priv->xalign = 0.5;
gboolean depressed;
if (priv->activate_timeout)
- depressed = priv->depress_on_activate;
+ depressed = TRUE;
else
depressed = priv->in_button && priv->button_down;
guint align_set : 1;
guint button_down : 1;
guint constructed : 1;
- guint depress_on_activate : 1;
guint focus_on_click : 1;
guint image_is_stock : 1;
guint in_button : 1;
_gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio_button), TRUE);
- GTK_BUTTON (radio_button)->priv->depress_on_activate = FALSE;
-
priv->group = g_slist_prepend (NULL, radio_button);
gtk_widget_set_state_flags (GTK_WIDGET (radio_button), GTK_STATE_FLAG_CHECKED, TRUE);
toggle_button->priv = gtk_toggle_button_get_instance_private (toggle_button);
toggle_button->priv->active = FALSE;
toggle_button->priv->draw_indicator = FALSE;
-
- GTK_BUTTON (toggle_button)->priv->depress_on_activate = TRUE;
}
static void
GtkStyleContext *context;
priv->draw_indicator = draw_indicator;
- GTK_BUTTON (toggle_button)->priv->depress_on_activate = !draw_indicator;
if (gtk_widget_get_visible (GTK_WIDGET (toggle_button)))
gtk_widget_queue_resize (GTK_WIDGET (toggle_button));